var initstate={
    detailList:[]
}
function reducer(state=initstate,action){
    switch(action.type){
        case 'NEWSDETAIL':
            return {...state,detailList:action.payload};
        default:
            return state
    }
}

export default reducer;